<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../../mofumui/mofumui.js" ></script>
	</head>
	<body>
		<script type="text/javascript">
			//JS 路由
			mofum.setPrefix("../../")
			
			//使用 MOStringFormat  组件
			mofum.imports(["MOStringFormat"],function(MOStringFormat){
				
				var format = new MOStringFormat();
				var user = {"name":"玉米"};
				console.log(format.format("{name}，你好！",user))
				
				var str = "Mofum";
				
				//首字母小写
				var value = format.convertCase(str,MOStringFormat.FIRST_LOWER);
				console.log(value);
				
				//首字母大写
				value = format.convertCase(str,MOStringFormat.FIRST_UPPER);
				console.log(value);
				
				//大小写反转
				value = format.convertCase(str,MOStringFormat.REVERSE);
				console.log(value);
				
				//全部小写
				value = format.convertCase(str,MOStringFormat.ALL_LOWER);
				console.log(value);
				
				//全部大写
				value = format.convertCase(str,MOStringFormat.ALL_UPPER);
				console.log(value);
				
				//以M开头
				value = format.startWith(str,"M");
				console.log(value);
				
				//以结尾
				value = format.endWith(str,"m");
				console.log(value);
				
				//生成UUID
				value = format.generateUUID();
				console.log(value);
				
			});
			
		</script>
	</body>
</html>
